package cn.gcyl.module.biz.controller.admin.membershipsettings.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 会员设置新增/修改 Request VO")
@Data
public class MembershipSettingsSaveReqVO {

    @Schema(description = "会员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "787")
    private Long id;

    @Schema(description = "会员名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "会员名称不能为空")
    private String membershipName;
    @Schema(description = "会员说明")
    private String membershipDescription;

    @Schema(description = "价格", example = "16083")
    private BigDecimal price;

    @Schema(description = "划线价格", example = "23292")
    private BigDecimal underlinedPrice;

    @Schema(description = "咨询次数(次数)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "咨询次数(次数)不能为空")
    private Long consultationFrequency;

    @Schema(description = "报名次数(次数)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报名次数(次数)不能为空")
    private Long registrationsFrequency;

    @Schema(description = "有效期(天)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期(天)不能为空")
    private Integer lifeSpan;

}